package com.dm.client;

import com.dm.config.DmConfiguration;
import com.dm.fallback.DmItemCinemaSeatClientFallBack;
import com.dm.pojo.DmItemCinemaSeat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
* Feign
*/
@FeignClient(name = "dm-item-provider", configuration = DmConfiguration.class, fallback = DmItemCinemaSeatClientFallBack.class)
public interface DmItemCinemaSeatClient {
@RequestMapping(value = "/getDmItemCinemaSeatById",method = RequestMethod.POST)
public DmItemCinemaSeat getDmItemCinemaSeatById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getDmItemCinemaSeatListByMap",method = RequestMethod.POST)
public List<DmItemCinemaSeat>	getDmItemCinemaSeatListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getDmItemCinemaSeatCountByMap",method = RequestMethod.POST)
public Integer getDmItemCinemaSeatCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddDmItemCinemaSeat",method = RequestMethod.POST)
public Integer qdtxAddDmItemCinemaSeat(@RequestBody DmItemCinemaSeat dmItemCinemaSeat)throws Exception;

@RequestMapping(value = "/qdtxModifyDmItemCinemaSeat",method = RequestMethod.POST)
public Integer qdtxModifyDmItemCinemaSeat(@RequestBody DmItemCinemaSeat dmItemCinemaSeat)throws Exception;
}

